package com.meisupic.copyright.repo;

import com.meisupic.copyright.domain.po.Category;
import java.util.List;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Author wuxun
 * @Date 2018/2/6 下午2:57
 */
public interface CategoryRepo extends JpaRepository<Category, Integer> {

  List<Category> findByParentId(Integer parentId,Sort sort);

}
